package cn.iocoder.yudao.module.pplan.controller.admin.recipedetail.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 生产计划-餐谱关联菜品详细信息新增/修改 Request VO")
@Data
public class RecipeDetailSaveReqVO {

    @Schema(description = "唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "15633")
    private Long id;

    @Schema(description = "餐谱数据主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "4142")
    @NotNull(message = "餐谱数据主键不能为空")
    private Long recipeId;

    @Schema(description = "菜品主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "29133")
    @NotNull(message = "菜品主键不能为空")
    private Long receipeMealId;

    @Schema(description = "餐具主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "28501")
    @NotNull(message = "餐具主键不能为空")
    private Long tablewareId;

    @Schema(description = "配餐比例", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "配餐比例不能为空")
    private BigDecimal ratio;

}